package com.finance.report.service;


import com.finance.framework.lang.Page;
import com.finance.framework.lang.PageResultBO;
import com.finance.report.bean.pojo.LogisticsComittedInfos;
import com.finance.report.bean.pojo.LogisticsCommitted;
import com.finance.report.bean.pojo.LogisticsExtend;

import java.util.Date;
import java.util.List;

public interface ILogisticsExtendService {
    LogisticsExtend getById(Date signTime, Long id);

    LogisticsExtend getByWayBillNum(Date signTime, String wayBillNum);
    @Deprecated
    List<LogisticsExtend> listAll(Date signTime);

    PageResultBO<LogisticsExtend> listByPage(Date signTime, Page page);

    PageResultBO<LogisticsExtend> extendsInfos(Page page);

    boolean add(Date signTime, LogisticsExtend logisticsExtend);

    boolean delete(Date signTime, Long id);

    LogisticsExtend update(Date signTime, LogisticsExtend logisticsExtend) throws Exception;
    LogisticsExtend updateWithdataValid(Date signTime, LogisticsExtend logisticsExtend,String dataValid) throws Exception;

    List<LogisticsCommitted> getManLogistics(String extendTableName, String postmanNo);

    LogisticsComittedInfos getLogisticsInfo (String tableName, String waybillNum);

    List<String> getPostmans(String extendTableName);

    boolean isFinished(String extendTableName);
}
